package com.cyq.dascma.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyq.dascma.dto.CourseDto;
import com.cyq.dascma.dto.ScoreInfoDto;
import com.cyq.dascma.entity.Course;
import com.cyq.dascma.mapper.CourseMapper;
import com.cyq.dascma.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * dingwen
 * 2021/4/4 17:11
 **/
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements CourseService {
    private final CourseMapper courseMapper;

    @Autowired
    CourseServiceImpl(CourseMapper courseMapper) {
        this.courseMapper = courseMapper;
    }

    @Override
    public List<CourseDto> findCourseInfoList(Map<String, Object> params) {
        return courseMapper.findCourseInfoList(params);
    }
}
